package com.hoshiicloud.auth.service;

import com.hoshiicloud.auth.vo.LoginVO;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.user.entity.company.Member;

/**
 * @program: hoshiicloud-biz
 * @description: 租户会员服务接口
 * @author: Mr.wu
 * @create: 2019-08-22 17:54
 * //TODO 租户登录获取信息接口
 * //TODO 租户密码登录接口
 * //TODO 租户手机验证码登录
 * //TODO 租户员工登录
 * //TODO 租户相关系统SSO登录
 **/
public interface CompanyUserService {

    Response memberPasswordLogin(String privateDomain,String userName,String password);

    Response memberSmsLogin(Long companyId,String privateDomain, String phone,String msgId,String code);



    Response getMemberAccessToken(String memberRefreshToken);

    String getMemberRefreshToken(Long memberId,Long companyId,String secret);

    Response getPlatformUserAccessToken(Long platformId,String memberRefreshToken);

    Response getStoreUserAccessToken(Long storeId,String memberRefreshToken);


    Response<LoginVO> companyUserLogin(String privateDomain, String userName, String password);

    Response<LoginVO> companyUserAccessToken(String comUsersRefreshToken);

}
